/*
    Copyright 2013 Jonathan Kaschak

    This file is part of TerraTamper.

    TerraTamper is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    TerraTamper is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with TerraTamper.  If not, see <http://www.gnu.org/licenses/>.
*/

package Packets;

import static Main.TerrariaProtocol.*;

public class ModifyTile {
    public static int packet_id = 17;
    
    static byte[] packet = {25, 0, 0, 0, 21, -112, 1, 0, 23, 3, 71, 0, -88, -94, 69, 0, 0, -128, -64, 0, 0, 0, -64, 2, 0, 0, 0, 2, 0, };
    static int action = 5;
    static int tile_x = 6;
    static int tile_y = 10;
    static int var_1 = 14;
    static int var_2 = 15;
    
    /*public static byte[] CreateDrop(int in_item_id, int in_position_x, int in_position_y, int in_velocity_x, int in_velocity_y, int in_stacks, int in_prefix, int in_nodelay, int in_item_netid){
        byte[] data = packet;
        
        byte[] temp = int162byte(in_item_id);
            data[item_id] = temp[0];
            data[item_id+1] = temp[1];
        
        temp = int322byte(in_position_x);
            data[position_x] = temp[0];
            data[position_x+1] = temp[1];
            data[position_x+2] = temp[2];
            data[position_x+3] = temp[3];
       
        temp = int322byte(in_position_y);
            data[position_y] = temp[0];
            data[position_y+1] = temp[1];
            data[position_y+2] = temp[2];
            data[position_y+3] = temp[3];
            
        temp = int322byte(in_velocity_x);
            data[velocity_x] = temp[0];
            data[velocity_x+1] = temp[1];
            data[velocity_x+2] = temp[2];
            data[velocity_x+3] = temp[3];
            
        temp = int322byte(in_velocity_y);
            data[velocity_y] = temp[0];
            data[velocity_y+1] = temp[1];
            data[velocity_y+2] = temp[2];
            data[velocity_y+3] = temp[3];
            
        data[stacks] = (byte)in_stacks;
        data[prefix] = (byte)in_prefix;
        data[nodelay] = (byte)in_nodelay;
        
        temp = int162byte(in_item_netid);
            data[item_netid] = temp[0];
            data[item_netid+1] = temp[1];
        return data;
    }*/
}
